package com.mrzhou.job.vo.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @author qiang.zhou
 */
@Getter
@Setter
public class CreateSchedulerJobReq {

    @ApiModelProperty("定时器名称")
    @NotBlank(message = "定时器任务名称不能为空")
    private String jobName;

    @ApiModelProperty(value = "cron表达式")
    @NotBlank(message = "cron表达式不能为空")
    private String cronExpression;

    @ApiModelProperty(value = "需要执行的定时器任务类，需继承QuartzJobBean.class")
    @NotBlank(message = "执行的定时器任务类路径不能为空")
    private String jobClass;

}
